Intent-to-ship: CSS Highlight API

209 views
Skip to first unread message

Jan-Niklas Jäschke

unread,
May 5, 2025, 11:35:18 AMMay 5
to dev-pl...@mozilla.org
Moin,


I just landed Bug 1964089 (https://bugzil.la/1964089) to enable the CSS
Highlight API in its current state in the 140 release cycle. It has been
enabled on Nightly for a while.

In its current state, our implementation for CSS Highlight API does not
support text decorations (which we don't support in ::selection either).
I am planning to add support for this soon-ish, but don't consider it a
ship blocker.


Cheers,

Jan

Emilio Cobos Álvarez

unread,
May 5, 2025, 3:33:28 PMMay 5
to Jan-Niklas Jäschke, dev-pl...@mozilla.org
Is the text decoration support feature-detectable?

Using it for things like spellchecker underlines and us just not
rendering them with no way for the site to tell seems unfortunate.

Assuming it's not a lot of effort (we have code for spellchecker to do
such thing), I think it'd be a good idea to implement it before shipping
this to release.

-- Emilio

Masayuki Nakano

unread,
May 8, 2025, 6:13:30 AMMay 8
to Emilio Cobos Álvarez, Jan-Niklas Jäschke, dev-pl...@mozilla.org

Well, we already support painting `text-decoration` for selection ranges for IME. Why cannot support it? Style-system issue? Or overflow rect issue? (I guess that the latter is difficult to solve if it causes performance issues.)

-- 
Masayuki Nakano <masa...@d-toybox.com>
Working on DOM, Events, editor and IME handling for Gecko

Jan-Niklas Jäschke

unread,
May 8, 2025, 11:27:24 AMMay 8
to Masayuki Nakano, Emilio Cobos Álvarez, dev-pl...@mozilla.org
I’m actively working on it and trying to squeeze it in this cycle. 

On 8. May 2025, at 02:43, Masayuki Nakano <masa...@d-toybox.com> wrote:


Reply all
Reply to author
Forward
0 new messages